﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SurveyDS" targetNamespace="http://tempuri.org/SurveyDS.xsd" xmlns:mstns="http://tempuri.org/SurveyDS.xsd" xmlns="http://tempuri.org/SurveyDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="UcConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="UcConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.UCENTRIK.Properties.Settings.GlobalReference.Default.UcConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SurveyResponseDSTableAdapter" GeneratorDataComponentClassName="SurveyResponseDSTableAdapter" Name="SurveyResponseDS" UserDataComponentName="SurveyResponseDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_response_select_by_incident" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_response_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@incident_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="incident_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_question_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="survey_question_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@response" Precision="0" ProviderType="NVarChar" Scale="0" Size="200" SourceColumn="response" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_response_select_by_incident</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@incident_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="subject" DataSetColumn="subject" />
              <Mapping SourceColumn="title" DataSetColumn="question_text" />
              <Mapping SourceColumn="survey_response_id" DataSetColumn="survey_response_id" />
              <Mapping SourceColumn="survey_question_id" DataSetColumn="survey_question_id" />
              <Mapping SourceColumn="incident_id" DataSetColumn="incident_id" />
              <Mapping SourceColumn="response" DataSetColumn="response" />
              <Mapping SourceColumn="date_created" DataSetColumn="date_created" />
              <Mapping SourceColumn="date_updated" DataSetColumn="date_updated" />
              <Mapping SourceColumn="date_deleted" DataSetColumn="date_deleted" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_response_select_by_incident" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetSurveyResponseByIncident" GetMethodModifier="Public" GetMethodName="GetSurveyResponseByIncident" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetSurveyResponseByIncident" UserSourceName="GetSurveyResponseByIncident">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_response_select_by_incident</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@incident_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_response_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertSurveyResponse" Modifier="Public" Name="InsertSurveyResponse" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertSurveyResponse">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_response_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@incident_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@question_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@response" Precision="0" ProviderType="NVarChar" Scale="0" Size="1000" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SurveyDSTableAdapter" GeneratorDataComponentClassName="SurveyDSTableAdapter" Name="SurveyDS" UserDataComponentName="SurveyDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_select" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_delete</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="survey_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@survey_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="survey_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_select</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_update</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="survey_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@survey_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="survey_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="survey_id" DataSetColumn="survey_id" />
              <Mapping SourceColumn="survey_name" DataSetColumn="survey_name" />
              <Mapping SourceColumn="date_created" DataSetColumn="date_created" />
              <Mapping SourceColumn="date_updated" DataSetColumn="date_updated" />
              <Mapping SourceColumn="date_deleted" DataSetColumn="date_deleted" />
              <Mapping SourceColumn="is_deleted" DataSetColumn="is_deleted" />
              <Mapping SourceColumn="question_cnt" DataSetColumn="question_cnt" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_get_all" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetAllSurveys" GetMethodModifier="Public" GetMethodName="GetAllSurveys" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetAllSurveys" UserSourceName="GetAllSurveys">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_get_all</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertSurvey" Modifier="Public" Name="InsertSurvey" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertSurvey">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@survey_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SurveyQuestionDSTableAdapter" GeneratorDataComponentClassName="SurveyQuestionDSTableAdapter" Name="SurveyQuestionDS" UserDataComponentName="SurveyQuestionDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_get_questions" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_get_questions</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="question_id" DataSetColumn="question_id" />
              <Mapping SourceColumn="title" DataSetColumn="question_text" />
              <Mapping SourceColumn="survey_id" DataSetColumn="survey_id" />
              <Mapping SourceColumn="question_text" DataSetColumn="question_text" />
              <Mapping SourceColumn="question_type_name" DataSetColumn="question_type_name" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_survey_set_question" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="SetSurveyQuestion" Modifier="Public" Name="SetSurveyQuestion" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="SetSurveyQuestion">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_survey_set_question</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@survey_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@question_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@set" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="SurveyDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="SurveyDS" msprop:Generator_DataSetName="SurveyDS" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SurveyResponseDS" msprop:Generator_UserTableName="SurveyResponseDS" msprop:Generator_RowDeletedName="SurveyResponseDSRowDeleted" msprop:Generator_RowChangedName="SurveyResponseDSRowChanged" msprop:Generator_RowClassName="SurveyResponseDSRow" msprop:Generator_RowChangingName="SurveyResponseDSRowChanging" msprop:Generator_RowEvArgName="SurveyResponseDSRowChangeEvent" msprop:Generator_RowEvHandlerName="SurveyResponseDSRowChangeEventHandler" msprop:Generator_TableClassName="SurveyResponseDSDataTable" msprop:Generator_TableVarName="tableSurveyResponseDS" msprop:Generator_RowDeletingName="SurveyResponseDSRowDeleting" msprop:Generator_TablePropName="SurveyResponseDS">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="subject" msprop:Generator_UserColumnName="subject" msprop:Generator_ColumnVarNameInTable="columnsubject" msprop:Generator_ColumnPropNameInRow="subject" msprop:Generator_ColumnPropNameInTable="subjectColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="question_text" msprop:Generator_UserColumnName="question_text" msprop:Generator_ColumnVarNameInTable="columnquestion_text" msprop:Generator_ColumnPropNameInRow="question_text" msprop:Generator_ColumnPropNameInTable="question_textColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="survey_response_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="survey_response_id" msprop:Generator_ColumnVarNameInTable="columnsurvey_response_id" msprop:Generator_ColumnPropNameInRow="survey_response_id" msprop:Generator_ColumnPropNameInTable="survey_response_idColumn" type="xs:int" />
              <xs:element name="survey_question_id" msprop:Generator_UserColumnName="survey_question_id" msprop:Generator_ColumnVarNameInTable="columnsurvey_question_id" msprop:Generator_ColumnPropNameInRow="survey_question_id" msprop:Generator_ColumnPropNameInTable="survey_question_idColumn" type="xs:int" />
              <xs:element name="incident_id" msprop:Generator_UserColumnName="incident_id" msprop:Generator_ColumnVarNameInTable="columnincident_id" msprop:Generator_ColumnPropNameInRow="incident_id" msprop:Generator_ColumnPropNameInTable="incident_idColumn" type="xs:int" />
              <xs:element name="response" msprop:Generator_UserColumnName="response" msprop:Generator_ColumnVarNameInTable="columnresponse" msprop:Generator_ColumnPropNameInRow="response" msprop:Generator_ColumnPropNameInTable="responseColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="date_created" msprop:Generator_UserColumnName="date_created" msprop:Generator_ColumnVarNameInTable="columndate_created" msprop:Generator_ColumnPropNameInRow="date_created" msprop:Generator_ColumnPropNameInTable="date_createdColumn" type="xs:dateTime" />
              <xs:element name="date_updated" msprop:Generator_UserColumnName="date_updated" msprop:Generator_ColumnVarNameInTable="columndate_updated" msprop:Generator_ColumnPropNameInRow="date_updated" msprop:Generator_ColumnPropNameInTable="date_updatedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="date_deleted" msprop:Generator_UserColumnName="date_deleted" msprop:Generator_ColumnVarNameInTable="columndate_deleted" msprop:Generator_ColumnPropNameInRow="date_deleted" msprop:Generator_ColumnPropNameInTable="date_deletedColumn" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SurveyDS" msprop:Generator_UserTableName="SurveyDS" msprop:Generator_RowDeletedName="SurveyDSRowDeleted" msprop:Generator_RowChangedName="SurveyDSRowChanged" msprop:Generator_RowClassName="SurveyDSRow" msprop:Generator_RowChangingName="SurveyDSRowChanging" msprop:Generator_RowEvArgName="SurveyDSRowChangeEvent" msprop:Generator_RowEvHandlerName="SurveyDSRowChangeEventHandler" msprop:Generator_TableClassName="SurveyDSDataTable" msprop:Generator_TableVarName="tableSurveyDS" msprop:Generator_RowDeletingName="SurveyDSRowDeleting" msprop:Generator_TablePropName="_SurveyDS">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="survey_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="survey_id" msprop:Generator_ColumnPropNameInRow="survey_id" msprop:Generator_ColumnVarNameInTable="columnsurvey_id" msprop:Generator_ColumnPropNameInTable="survey_idColumn" type="xs:int" />
              <xs:element name="survey_name" msprop:Generator_UserColumnName="survey_name" msprop:Generator_ColumnPropNameInRow="survey_name" msprop:Generator_ColumnVarNameInTable="columnsurvey_name" msprop:Generator_ColumnPropNameInTable="survey_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="date_created" msprop:Generator_UserColumnName="date_created" msprop:Generator_ColumnPropNameInRow="date_created" msprop:Generator_ColumnVarNameInTable="columndate_created" msprop:Generator_ColumnPropNameInTable="date_createdColumn" type="xs:dateTime" />
              <xs:element name="date_updated" msprop:Generator_UserColumnName="date_updated" msprop:Generator_ColumnPropNameInRow="date_updated" msprop:Generator_ColumnVarNameInTable="columndate_updated" msprop:Generator_ColumnPropNameInTable="date_updatedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="date_deleted" msprop:Generator_UserColumnName="date_deleted" msprop:Generator_ColumnPropNameInRow="date_deleted" msprop:Generator_ColumnVarNameInTable="columndate_deleted" msprop:Generator_ColumnPropNameInTable="date_deletedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="is_deleted" msprop:Generator_UserColumnName="is_deleted" msprop:Generator_ColumnPropNameInRow="is_deleted" msprop:Generator_ColumnVarNameInTable="columnis_deleted" msprop:Generator_ColumnPropNameInTable="is_deletedColumn" type="xs:boolean" />
              <xs:element name="question_cnt" msdata:ReadOnly="true" msprop:Generator_UserColumnName="question_cnt" msprop:Generator_ColumnVarNameInTable="columnquestion_cnt" msprop:Generator_ColumnPropNameInRow="question_cnt" msprop:Generator_ColumnPropNameInTable="question_cntColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SurveyQuestionDS" msprop:Generator_UserTableName="SurveyQuestionDS" msprop:Generator_RowDeletedName="SurveyQuestionDSRowDeleted" msprop:Generator_RowChangedName="SurveyQuestionDSRowChanged" msprop:Generator_RowClassName="SurveyQuestionDSRow" msprop:Generator_RowChangingName="SurveyQuestionDSRowChanging" msprop:Generator_RowEvArgName="SurveyQuestionDSRowChangeEvent" msprop:Generator_RowEvHandlerName="SurveyQuestionDSRowChangeEventHandler" msprop:Generator_TableClassName="SurveyQuestionDSDataTable" msprop:Generator_TableVarName="tableSurveyQuestionDS" msprop:Generator_RowDeletingName="SurveyQuestionDSRowDeleting" msprop:Generator_TablePropName="SurveyQuestionDS">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="question_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="question_id" msprop:Generator_ColumnPropNameInRow="question_id" msprop:Generator_ColumnVarNameInTable="columnquestion_id" msprop:Generator_ColumnPropNameInTable="question_idColumn" type="xs:int" />
              <xs:element name="question_text" msprop:Generator_UserColumnName="question_text" msprop:Generator_ColumnPropNameInRow="question_text" msprop:Generator_ColumnVarNameInTable="columnquestion_text" msprop:Generator_ColumnPropNameInTable="question_textColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="survey_id" msprop:Generator_UserColumnName="survey_id" msprop:Generator_ColumnPropNameInRow="survey_id" msprop:Generator_ColumnVarNameInTable="columnsurvey_id" msprop:Generator_ColumnPropNameInTable="survey_idColumn" type="xs:int" minOccurs="0" />
              <xs:element name="question_type_name" msprop:Generator_UserColumnName="question_type_name" msprop:Generator_ColumnPropNameInRow="question_type_name" msprop:Generator_ColumnVarNameInTable="columnquestion_type_name" msprop:Generator_ColumnPropNameInTable="question_type_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SurveyResponseDS" />
      <xs:field xpath="mstns:survey_response_id" />
    </xs:unique>
    <xs:unique name="SurveyDS_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SurveyDS" />
      <xs:field xpath="mstns:survey_id" />
    </xs:unique>
    <xs:unique name="SurveyQuestionDS_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SurveyQuestionDS" />
      <xs:field xpath="mstns:question_id" />
    </xs:unique>
  </xs:element>
</xs:schema>